cssprovider: Keep track of passed in error differently
authorBenjamin Otte <otte@redhat.com>
Mon, 11 Apr 2011 00:32:26 +0000 (02:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 19:58:45 +0000 (21:58 +0200)
commit607846879eee368334fef8763ef53ccc587c10a6
treecfef8336e4fef9461ee1ffeaef0394645747184c
parent8fb6fdd3e73162a3f32caf021c7019363d46adf4
cssprovider: Keep track of passed in error differently

Instead of having an error member in the CSS provider's private struct,
connect a signal handler when an error is passed in. This has two
advantages:
1) It makes the code clearer as we don't have to keep track of an error
   member anywhere.
2) It causes a non-emission of the g_warning() when an error was passed
   in, because it only triggers when no signal handlers are connected.
   So we get identical behavior to GTK 3.0 where warnings where only
   emitted when no error was passed in.
gtk/gtkcssprovider.c